package cn.daichi.elasticsearchdemo.service;

import cn.daichi.elasticsearchdemo.entity.Post;
import cn.daichi.elasticsearchdemo.vo.PostVo;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author choudaichi
 * @since 2020-05-20
 */
public interface PostService extends IService<Post> {
    IPage paging(Page page, Long categoryId, Long userId, Integer level, Boolean recommend, String order);

    PostVo selectOnePost(QueryWrapper<Post> wrapper);
}
